package com.addplus.townmall.server.api.model.town;

import com.baomidou.mybatisplus.annotation.TableName;
import com.addplus.townmall.server.api.model.base.BaseRestModel;
import com.baomidou.mybatisplus.annotation.TableField;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 商品规格值
 * </p>
 *
 * @author zhangjiehang
 * @since 2018-08-27
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("shop_specification_value")
public class ShopSpecificationValue extends BaseRestModel {

    private static final long serialVersionUID = 1L;

    /**
     * 商品规格名主键id
     */
    @TableField("specification_name_id")
    private Integer specificationNameId;
    /**
     * 商品主键id
     */
    @TableField("shop_product_id")
    private Integer shopProductId;
    /**
     * 属性值名称
     */
    private String value;
    /**
     * 是否有规格图片(0:否 1:是)
     */
    @TableField("is_img")
    private Integer isImg;
    /**
     * 商品类型(1:普通 2:拼团)
     */
    private Integer type;
    /**
     * 排序
     */
    private Integer sort;
    /**
     * 规格图片
     */
    private String img;
    /**
     * 是否删除(0:否 1:是)
     */
    @TableField("is_deleted")
    private Integer isDeleted;


}
